<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Impact.Web.Admin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Impact Login</title>
    <link rel="stylesheet" href="css/admin.css" type="text/css" />
    <script type="text/javascript">
        function submitOnEnter(e)
        {
            if(e.keyCode == 13) // enter key
            {
                <%= CallbackScript %>
            }
        }
    </script>
</head>
<body onkeypress="submitOnEnter(event)">
    <form id="AdminForm" runat="server">

        <div style="margin-left: auto; margin-right: auto; width: 260px;">
            <div class="AdminTable" style="width: 260px; height: 315px; margin-bottom: 0px; background-image: url('images/login_logo.png');"></div>
            <div style="margin-top: 0px;">
                <table class="AdminTable" border="0" cellpadding="0" style="width: 260px;">
                    <tr>
                        <td align="center" colspan="2" style="color: red; text-align: center;">
                            <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>&nbsp;
                        </td>
                    </tr>

                    <tr>
                        <td align="left" style="text-align: left;">
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label></td>
                        <td style="text-align: left">
                            <asp:TextBox ID="UserName" runat="server" BorderStyle="Solid" BorderWidth="1px" Width="150px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" style="text-align: left">
                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label></td>
                        <td style="text-align: left">
                            <asp:TextBox ID="Password" runat="server" BorderStyle="Solid" BorderWidth="1px" TextMode="Password"
                                Width="150px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: center;">
                            <asp:CheckBox ID="RememberMe" runat="server" Checked="True" Text="Remember me next time." />
                        </td>
                    </tr>
                    <tr><td colspan="2">&nbsp;</td></tr>                        
                    <tr>
                        <td colspan="2" style="text-align: center;">
                            <impact:ImageLinkButton ID="LoginImageButton" CssClass="AdminTableButton" runat="server"
                                OnCommand="LoginCommand" ImageUrl="images/door_in.png" Text="Login" />
                        </td>
                    </tr>
                    <tr><td colspan="2">&nbsp;</td></tr>
                    <tr>
                        <td colspan="2" style="text-align: center;">
                            <a href="LostPassword.aspx" style="font-size: 0.7em; color: #679;">Lost Password?</a></td>
                    </tr>
                </table>
            </div>
            
        </div>
        
    </form>
    
</body>
</html>    

